.. _syntax-error,-unexpected-token-">":
syntax error, unexpected token ">"
----------------------------------
.. meta::
:description:
syntax error, unexpected token ">": This syntax error is characteristic of the pipe operator ``|>`` being used in version older than PHP 8.
:og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png
:og:type: article
:og:title: syntax error, unexpected token ">"
:og:description: This syntax error is characteristic of the pipe operator ``|>`` being used in version older than PHP 8
:og:url: https://php-errors.readthedocs.io/en/latest/messages/syntax-error%2C-unexpected-token-%22%3E%22.html
:og:locale: en
:twitter:card: summary_large_image
:twitter:site: @exakat
:twitter:title: syntax error, unexpected token ">"
:twitter:description: syntax error, unexpected token ">": This syntax error is characteristic of the pipe operator ``|>`` being used in version older than PHP 8
:twitter:creator: @exakat
:twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png
.. raw:: html
Description
___________
This syntax error is characteristic of the pipe operator ``|>`` being used in version older than PHP 8.5.
Example
_______
.. code-block:: php
strtoupper(...);
?>
Solutions
_________
+ Upgrade to PHP 8.5.
+ Nest the calls, instead of using the pipe operator.
Changed Behavior
________________
This error may appear following an evolution in behavior, in previous versions. See ` `_.
Static Analysis
_______________
This error may be tracked down with the following static analysis rules: `Php/PipeOperator `_.